package com.tedu.bill.demo8;

/**
 * Author：毕龙
 * Date: 2024/4/17 10:13
 */
public class TestClassCreate {
    public static void main(String[] args) {
        //stu就是对象的引用
        Student stu = new Student();

        //通过.访问对象的属性和方法
        stu.name = "曹洋";
        stu.age = 20;
        stu.print();

        //学生调用重载
        stu.study();
        stu.study("java");
        stu.study(2);
        stu.study("mysql", 1);
        stu.study(3,"linux");
    }
}
